$basic_color: #45b787;
$basic_hover_color: #2c9678;
* {
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
  font-family: Consolas, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0.05em;
  box-sizing: border-box;
}
code,pre {
  color: #813c85;
  background-color: #fbecde;
  border-radius: 4px;
}
$color_name: yellow orange red purple blue green cyan gray;
$color_list: #fcd337 #f97d1c #de1c31 #813c85 #2775b6 #45b787 #1a94bc #bbb5ac;
@each $name in $color_name {
  $i: index($color_name,$name);
  .color-#{$name} {
    color: nth($color_list,$i);
    &.canhover:hover,
    &.active{
      background-color: nth($color_list,$i);
      color: #ffffff;
    }
  }
  .backcolor-#{$name} {
    background-color: nth($color_list,$i);
  }
}
.color-default {
  color: #444444;
}
.ym-outWrapper {
  display: flex;
  flex-direction: row;
  .ym-container {
    flex-grow: 1;
    .contentWrapper {
      width: 100%;
      height: 100%;
      min-height: 100vh;
      padding: 2em 0;
      box-sizing: border-box;
    }
    .ym-content {
      width: 768px;
      margin: 0 auto;
      background-color: #ffffff;
      box-sizing: border-box;
      padding: 1em;
      border-radius: 5px;
      .title {
        padding: 2em 0;
        h1 {
          font-weight: normal;
          font-size: 2.3em;
          text-align: center;
        }
      }
      .main {
        h2 {
          font-weight: normal;
          font-size: 1.2em;
          padding: .8em 0;
        }
        .intro-text {
          color: #444444;
          padding: .5em;
          code {
            padding: .1em .2em;
          }
        }
        .show-area {
          width: 100%;
          .element {
            padding: 1em 0;
              div[class*="bordercolor"] {
              border-width: 1px;
              border-style: solid;
                margin: .2em 0;
            }
            .ym-btn {
              margin-right: 5px;
            }
            .ym-carousel li {
              background-color: #2775b6;
              font-size: 3em;
              color: #ffffff;
              text-align: center;
              line-height: 400px;
            }
          }
          pre {
            font-size: .9em;
            padding: 1em;
            display: block;
            border: 1px solid #813c85;
            overflow: auto;
            word-break: break-all;
            white-space: pre-wrap;
          }
        }
      }
    }
  }
}
.index-page {
  text-align: center;
  h1 {
    font-size: 9em;
  }
  h2 {
    font-size: 2em;
    font-weight: normal;
    color: #666666;
    margin-bottom: 2em;
  }
}
@media screen and (max-width: 768px){
  .ym-content {
    width: 100%!important;
  }
}